#include<stdio.h>
#include<stdlib.h>

//这是主菜单。
//void menu()

int main()
{
	int x;
	printf("\n\n");
	printf("\t\t*****************************************\t\n");
	printf("\t\t*\t欢迎使用大学教材购销系统！    \t*\t\n");
    printf("\t\t*****************************************\t\n");
    printf("\t\t*\t请选择以下功能                \t*\t\n");
    printf("\t\t*****************************************\t\n");
	printf("\t\t*\t1.各班学生用书表              \t*\t\n");
	printf("\t\t*\t2.售书登记表                  \t*\t\n");
	printf("\t\t*\t3.缺书登记表                  \t*\t\n");
	printf("\t\t*\t4.教材存量表                  \t*\t\n");
	printf("\t\t*\t5.待购教材表                  \t*\t\n");
	printf("\t\t*\t6.缺书单                      \t*\t\n");
	printf("\t\t*\t7.教材一览表                  \t*\t\n");
	printf("\t\t*\t8.退出系统                    \t*\t\n");
	printf("\t\t*****************************************\t\n\n\n");
	printf("\t请选择：");	
	scanf("%d",&x);
	switch(x)
	{
		case 1 : 
		            system("cls");
			        use();
			        break;
		case 2 :
			        system("cls"); 
		            sale();
					break; 
		case 3 :
			        system("cls");
		            lack();
					break;
		case 4 :	
		            system("cls");		
					stock();
		        	break;
		case 5 :    
		    	    system("cls");
					purch();
					break;
		case 6 :	
				    system("cls");
					less();
					break;
		case 7 :
					system("cls");
					view();
					break;
		case 8 :
					system("cls");
					return 0;
					break;
		default :
                    system("cls");
		         	printf("\n\t没有此选项");
					break;				       
	}
	
	return 0;
}